package com.ruoyi.exam.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.exam.domain.ExamQuestionAnswer;
import com.ruoyi.exam.vo.ExamQuestionAnswerVo;

import java.util.List;

/**
 * 题目答案Service接口
 *
 * @author Tellsea
 * @date 2025-05-30
 */
public interface IExamQuestionAnswerService extends IService<ExamQuestionAnswer> {

    /**
     * 分页查询
     *
     * @param entity
     * @return
     */
    TableDataInfo<ExamQuestionAnswerVo> queryList(ExamQuestionAnswerVo entity);

    /**
     * 查询全部
     *
     * @param entity
     * @return
     */
    List<ExamQuestionAnswerVo> queryAll(ExamQuestionAnswerVo entity);

    /**
     * 根据ID查询
     *
     * @param answerId
     * @return
     */
    ExamQuestionAnswerVo queryById(Long answerId);

    boolean save(ExamQuestionAnswerVo entity);
}
